package myjava.inheritance._public_;

public class Root {

   public static void main(String[] args) {

      Dad d = new Dad();
      Son s = new Son();
      
      // stuff you can do:
      System.out.println(d.foo);
      System.out.println(s.foo);
      System.out.println(s.getFoo());
   }
}